package com.logistics.erp.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.logistics.erp.entity.domain.ErpInvReq;
import com.logistics.erp.mapper.ErpInvReqMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
@DS("erp")
@Service
public class ErpInvReqService extends ServiceImpl<ErpInvReqMapper, ErpInvReq>{

    @Autowired
    private ErpInvReqMapper erpInvReqMapper;

    /**
     * 根据退库单号 查询退库物料list
     * @param reqNo
     * @return
     */
    public List<ErpInvReq> listByReqNo(String reqNo) {
        List<ErpInvReq> result = erpInvReqMapper.findListByReqNo(reqNo);
        return result;
    }

}
